package com.jk.interfaces;

import com.baomidou.mybatisplus.annotation.TableId;
import com.jk.dto.TbAdmin;
import com.jk.dto.TbTeacher;
import com.jk.pojo.PagedResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

public interface TbTeacherServiceApi {

    @PostMapping(value = "/teacher/findTeacherList")
    public PagedResponse<TbTeacher> findTeacherList(@RequestBody TbTeacher tbTeacher, @RequestParam(value = "pageNum") Integer pageNum, @RequestParam(value = "pageSize") Integer pageSize);

    @PostMapping(value = "/teacher/delTeacherById")
    public void delTeacherById(@RequestParam(value = "id") Integer id);

    //新增
    @PostMapping(value = "/teacher/addTeacher")
    public void addTeacher(@RequestBody TbTeacher tbTeacher);

    //回显
    @GetMapping(value = "/teacher/getTeacherById")
    public TbTeacher getTeacherById(@RequestParam(value = "id") Integer id);

    //修改
    @PostMapping(value = "/teacher/upTeacher")
    public void upTeacher(@RequestBody TbTeacher tbTeacher);

    //修改状态
    @PostMapping(value = "/teacher/upstatus")
    public void upstatus(@RequestBody TbTeacher tbTeacher);

    //修改状态
    @PostMapping(value = "/teacher/updatestatus")
    public void updatestatus(@RequestBody TbTeacher tbTeacher);
}
